package com.burstly.lib.util;

import android.os.AsyncTask;
import android.os.Process;

public abstract class PrioritizedAsyncTask<T> extends AsyncTask<Void, Void, T>
{
  private int mPriority = 19;

  public PrioritizedAsyncTask()
  {
  }

  public PrioritizedAsyncTask(int paramInt)
  {
    setPriority(paramInt);
  }

  protected final T doInBackground(Void[] paramArrayOfVoid)
  {
    int i = Process.getThreadPriority(Process.myTid());
    Utils.setCurrentThreadPriority(this.mPriority);
    Object localObject = performInBackground();
    Utils.setCurrentThreadPriority(i);
    return localObject;
  }

  public int getPriority()
  {
    return this.mPriority;
  }

  protected abstract T performInBackground();

  public void setPriority(int paramInt)
  {
    if ((-19 <= paramInt) && (paramInt <= 19))
      this.mPriority = paramInt;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.util.PrioritizedAsyncTask
 * JD-Core Version:    0.6.2
 */